package com.qst.crop.demo.mapper;

import com.qst.crop.demo.entity.OrderTable;
import com.qst.crop.demo.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    int updateQua(long productId, String sellerEmail, String customerEmail);

    int updateQua2(long productId, String sellerEmail, String customerEmail);

    int updatePri(double totalPrice, long productId, String sellerEmail, String customerEmail);

    int add(OrderTable orderTable);

    int del(long productId, String sellerEmail, String customerEmail);

    List<OrderTable> getAll(String email);

    long getQua(long productId, String sellerEmail, String customerEmail);

    OrderTable getOrderByPro(long productId, String sellerEmail, String customerEmail);
}
